package cn.trda.service;

import java.util.Date;
import java.util.List;

import cn.trda.pojo.Keywords;
import cn.trda.pojo.User;
import cn.trda.util.MySqlPageUtil;

public interface KeywordsService {

	    Keywords selectByPrimaryKey(Long id);
	    
	    Keywords checkKeywords(String Keywords);
	    
	    int getCount(Keywords keywords);

		List<Keywords> getKeywordsBySearch(Keywords keywords,
				MySqlPageUtil mySqlPageUtil);

		int updateKeywords(Keywords keywords);
		
		void saveKeywords(Keywords keywords,User agent,Date date);
		
		void tx_changeStatusToOK(Keywords keywords, User sessionUser, Date date);

		void tx_changeStatusToNo(Keywords keywords, User sessionUser, Date date);
		public void tx_keywordsXuFei(Keywords keywords, String productType,
				int xufeiYears, Double price, Date date) throws Exception;
	
}
